package com.maiji.cloud.request.shopingmall;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.List;

@NoArgsConstructor
@Data
@Accessors(chain=true)
public class OrderInitReqDto {

    @ApiModelProperty(value="初始化订单参数")
    private OrderInitReqData data;

    @NoArgsConstructor
    @Data
    @Accessors(chain=true)
    public class OrderInitReqData {

        @ApiModelProperty(value="购物车ID[]：初始化购物车订单时传参")
        private List<String> shopingCartIds; // 购物车ID

        @ApiModelProperty(value="购物商品ID：初始化单品订单时传参")
        private String goodsId; // 购物商品ID

        @ApiModelProperty(value="购买数量：初始化单品订单时传参")
        private Integer purchaseQuantity; // 购买数量

    }

}
